If a visitor wants to go the the password protected page (this page), they must first enter the correct password on the previous page. (Note: The password is the protected filename without the .html ending.) A very good script if JavaScript is enabled. As an added bonus, it's only 8 lines! |
JavaScript Source Code 2002: Password Protection: Password Prompt
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!! |